﻿<UserControl  x:Class="Starehe.Views.FeesStatement"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      xmlns:Controls="clr-namespace:Helper.Controls;assembly=Helper"
      d:DesignHeight="600" d:DesignWidth="900"
	Background="White">

    <Grid>
        <TextBlock HorizontalAlignment="Left" Margin="20,20,0,0" Style="{DynamicResource Title}"  Text="Fees Statement" VerticalAlignment="Top"/>
        <TextBlock HorizontalAlignment="Left" Margin="40,80,0,0" TextWrapping="Wrap" Style="{DynamicResource Title0}" Text="Student" VerticalAlignment="Top"/>
        <TextBox HorizontalAlignment="Left" Height="23" Margin="114,126,0,0" VerticalAlignment="Top" Width="200"
                 Text="{Binding SelectedStudentID, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, 
            ValidatesOnDataErrors=True, Delay=100}"/>
        <TextBlock HorizontalAlignment="Left" Margin="53,126,0,0" TextWrapping="Wrap" Text="Student ID" VerticalAlignment="Top"/>
        <TextBlock HorizontalAlignment="Left" Margin="40,217,0,0" TextWrapping="Wrap" Style="{DynamicResource Title0}" Text="Period" VerticalAlignment="Top"/>
        <TextBlock HorizontalAlignment="Left" Margin="56,262,0,0" TextWrapping="Wrap" Text="Start Date" VerticalAlignment="Top"/>
        <DatePicker HorizontalAlignment="Left" Margin="114,262,0,0" VerticalAlignment="Top" Width="200"
                    DataContext="{Binding Statement}"
                    SelectedDateFormat="Long" SelectedDate="{Binding StartDate,Mode=TwoWay,
                    UpdateSourceTrigger=PropertyChanged}"/>
        <TextBlock HorizontalAlignment="Left" Margin="61,307,0,0" TextWrapping="Wrap" Text="End Date" VerticalAlignment="Top"/>
        <DatePicker HorizontalAlignment="Left" Margin="114,307,0,0" VerticalAlignment="Top" Width="200"
                    DataContext="{Binding Statement}"
                    SelectedDateFormat="Long" SelectedDate="{Binding EndDate,Mode=TwoWay, 
                    UpdateSourceTrigger=PropertyChanged}"/>
        <TextBlock HorizontalAlignment="Left" Margin="350,80,0,0" Style="{DynamicResource Title0}" Text="Preview" VerticalAlignment="Top"/>
        <DocumentViewer Margin="350,109,10,50" Document="{Binding Document}" Name="viewer"/>
        <Button Content="Generate" HorizontalAlignment="Right" Margin="0,0,10,10" VerticalAlignment="Bottom" Width="100"
                Command="{Binding GenerateStatementCommand}"/>


    </Grid>
</UserControl>
